package com.atguigu.gulimall.search.vo;


import lombok.Data;

import java.util.List;

/**
 * 封装页面所有可能传递过来的查询条件
 */
@Data
public class SearchParam {

    private String keyword;//检索关键字

    private Long catalog3Id;//三级分类id

    /**
     * sort = saleCount_asc/desc
     * sort = skuPrice_asc/desc
     * sort = hotScore_asc/desc
     */
    private String sort;//排序

    /**
     * 过滤条件
     * hasStock skuPrice brandId catalog3Id attrs
     */
    private Integer hasStock;//是否有货

    private String skuPrice;//价格区间

    private List<Long> brandId;//按照品牌

    private List<String> attrs;//规格参数属性

    private Integer pageNum = 1;//页码

    private String _queryString;
}
